<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Createaccount.aspx.cs" Inherits="Createaccount" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <h2>Create an account</h2><br />
    <table>
        <tr>
            <td style="width: 120px">
                UserID:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtUser" runat="server"></asp:TextBox></td>
            <td style="width: 160px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUser"
                    ErrorMessage="Enter userid, Please!">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 120px">
                Password:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox></td>
            <td style="width: 160px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="Enter password, Please!">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 120px; height: 32px;">
                Confirm password:</td>
            <td style="width: 100px; height: 32px;">
                <asp:TextBox ID="txtConfrimPassword" runat="server" TextMode="Password"></asp:TextBox></td>
            <td style="width: 160px; height: 32px;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Enter confirm password, Please!" ControlToValidate="txtConfrimPassword">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                    ControlToValidate="txtConfrimPassword" Display="Dynamic" ErrorMessage="Password not confirm!"></asp:CompareValidator></td>
        </tr>
        <tr>
            <td style="width: 120px; height: 16px;">
                First name:</td>
            <td style="width: 100px; height: 16px;">
                <asp:TextBox ID="txtFName" runat="server"></asp:TextBox></td>
            <td style="width: 160px; height: 16px;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Enter first name, Please!" ControlToValidate="txtFName">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 120px">
                Last name:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtLName" runat="server"></asp:TextBox></td>
            <td style="width: 160px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Enter last name, Please!" ControlToValidate="txtLName">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 120px">
                Address:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
            <td style="width: 160px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Enter address, Please!" ControlToValidate="txtAddress">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 120px; height: 22px;">
                Phone:</td>
            <td style="width: 100px; height: 22px;">
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
            <td style="width: 160px; height: 22px;">
            </td>
        </tr>
        <tr>
            <td style="width: 120px">
                Email:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
            <td style="width: 160px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="Enter email, Please!">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                    Display="Dynamic" ErrorMessage="Email not valid!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 120px">
                Card Type:</td>
            <td style="width: 100px">
                <asp:DropDownList ID="drdCardTypes" runat="server">
                </asp:DropDownList></td>
            <td style="width: 160px">
            </td>
        </tr>
        <tr>
            <td style="width: 120px">
                Card Code:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtCardCode" runat="server"></asp:TextBox></td>
            <td style="width: 160px">
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Button ID="btnRegister" runat="server" Text="Register" />
                <asp:Button ID="btnReset" runat="server" Text="Reset" /></td>
        </tr>
    </table>
 
</asp:Content>

